package cn.stylefeng.guns.modular.hx.basic.mapper;

import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicGoodsCode;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicGoodsCodeParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicGoodsCodeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品分类 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2024-01-10
 */
public interface HxBasicGoodsCodeMapper extends BaseMapper<HxBasicGoodsCode> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    List<HxBasicGoodsCodeResult> customList(@Param("paramCondition") HxBasicGoodsCodeParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HxBasicGoodsCodeParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    Page<HxBasicGoodsCodeResult> customPageList(@Param("page") Page page, @Param("paramCondition") HxBasicGoodsCodeParam paramCondition, @Param("condition") String condition
    		,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HxBasicGoodsCodeParam paramCondition);

	List<HxBasicGoodsCodeResult> likePids(@Param("id")Integer id);

	List<ZTreeNode> tree(@Param("paramCondition") HxBasicGoodsCodeParam hxBasicGoodsCodeParam);

	HxBasicGoodsCodeResult findBySpec(@Param("paramCondition")HxBasicGoodsCodeParam param);

	List<HxBasicGoodsCodeResult> findListBySpec(@Param("paramCondition")HxBasicGoodsCodeParam param);

}
